#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>

class QGridLayout;
class QLabel;
class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = nullptr);
    ~Widget();
    void initUi();
    bool eventFilter(QObject *, QEvent *);
    bool calculate(QList<int>,int);
    inline bool isSelected(int);
private:
    QGridLayout* gridLayout;
    QLabel* label1;
    QLabel* label2;
    QLabel* label3;
    QLabel* label4;
    QLabel* label5;
    QLabel* label6;
    QLabel* label7;
    QLabel* label8;
    QLabel* label9;
    int num;
    int isRed;
    QList<int> redList;
    QList<int> blueList;
};
#endif // WIDGET_H
